/*
 ============================================================================
 Name		: PhoneProtector.h
 Author	  : Lenka Litvova
 Version	 : 1.0
 Copyright   : Copyright belongs to Lenka Litvova
 Description : CPhoneProtector declaration
 ============================================================================
 */

#ifndef PHONEPROTECTOR_H
#define PHONEPROTECTOR_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include "EventObserver.h" 

class CFRamI_UIAppUi;

// CLASS DECLARATION

/**
 *  CPhoneProtector
 * 
 */
class CPhoneProtector : public CBase, public MEventObserver
	{
public:
	// Constructors and destructor

	/**
	 * Destructor.
	 */
	~CPhoneProtector();

	/**
	 * Two-phased constructor.
	 */
	static CPhoneProtector* NewL(CFRamI_UIAppUi *aAppUi);

	/**
	 * Two-phased constructor.
	 */
	static CPhoneProtector* NewLC(CFRamI_UIAppUi *aAppUi);

private:

	/**
	 * Constructor for performing 1st stage construction
	 */
	CPhoneProtector(CFRamI_UIAppUi *aAppUi);

	/**
	 * EPOC default constructor for performing 2nd stage construction
	 */
	void ConstructL();
	
public://MEventObserver
	void ApplicationStarted(TUid aAppUid);
	void ApplicationStarted();

private:
	CFRamI_UIAppUi *iAppUi;
	};

#endif // PHONEPROTECTOR_H
